<#import "../../layout.html" as c>
    <#import "../../list_layout.html" as list>
        <#assign alertList = []/>
        <@c.html title="客户列表">
        <!-- ================== 开始页面级CSS调用 ================== -->
        <link href="${pluginsRoot}bootstrap-wizard/css/bwizard.min.css" rel="stylesheet"/>
        <!-- 日历控件 -->
        <link href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/WdatePicker.css" rel="stylesheet"/>
        <link href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/default/datepicker.css" rel="stylesheet"/>
        <!-- ================== 结束页面级CSS调用 ================== -->
        <@list.html title="客户列表" subTitle="客户列表" alertList=alertList permi="sys:user:save" addBtn=false searchHint="请输入用户名/姓名/手机号进行搜索">

        <!-- 开始用户权限参数 -->
        <!--<@shiro.hasPermission name="sys:user:edit">-->
        <!--<input type="hidden" id="editPermi" value="1"/>-->
        <!--</@shiro.hasPermission>-->
        <!--<@shiro.hasPermission name="sys:user:del">-->
        <!--<input type="hidden" id="delPermi" value="1"/>-->
        <!--</@shiro.hasPermission>-->
        <@shiro.hasPermission name="sys:user:pwdReset">
        <input type="hidden" id="pwdPermi" value="1"/>
        </@shiro.hasPermission>
        <@shiro.hasPermission name="sys:user:addInvest">
        <input type="hidden" id="addInvest" value="1"/>
        </@shiro.hasPermission>
        <!--<@shiro.hasPermission name="sys:user:cgInvest">-->
        <!--<input type="hidden" id="cgInvest" value="1"/>-->
        <!--</@shiro.hasPermission>-->
        <@shiro.hasPermission name="sys:user:addSeller">
        <input type="hidden" id="addSeller" value="1"/>
        </@shiro.hasPermission>
        <@shiro.hasPermission name="sys:user:look">
        <input type="hidden" id="userLook" value="1"/>
        </@shiro.hasPermission>

<!-- 结束用户权限参数 -->

<!-- 开启添加投资人模态窗口 -->
<div class="modal fade" id="addModal" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title"> 添加投资人 </h4>
            </div>
            <div class="modal-body">
                <form id="addForm" class="form-horizontal form-bordered p-0" autocomplete="off" action="${adminRoot}user/addInvest.json" method="post" data-parsley-validate="true">
                    <input type="hidden" name="password" id="password">
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">用户名<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input id="userName" type="text" class="form-control" name="userName"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">姓名&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                        <input id="realName" type="text" class="form-control" name="realName" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">客户ID&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                        <input class="form-control" name = "id" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">电话&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                        <input  type="text" class="form-control" name = "mobilePhone"id="mobilePhone" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">股票交易佣金(*万分之X)<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                        <input type="text" class="form-control" name = "feeScale" id="feeScale" required/>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer"> <a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a> <a href="javascript:;" class="btn btn-primary" data-loading-text="Loading..." nc-ajax-submit-target="addForm" nc-ajax-submit>确认提交</a> </div>
        </div>
    </div>
</div>
<!--结束添加投资人模态窗口 -->

<!-- 开启添加销售模态窗口 -->
<div class="modal fade" id="addModal2" tabindex="-1" role="dialog">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title"> 添加销售 </h4>
            </div>
            <div class="modal-body">
                <form id="addForm2" class="form-horizontal form-bordered p-0" autocomplete="off" action="${adminRoot}user/addSeller.json" method="post" data-parsley-validate="true">
                    <input type="hidden" name="password" id="pass">
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">用户名&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                        <input id="user_name" type="text" class="form-control" name="userName" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">姓名&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                        <input id="real_name" type="text" class="form-control" name="realName" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">客户ID&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                        <input class="form-control" name = "id" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">电话&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                        <input  type="text" class="form-control" name = "mobilePhone"id="mobile_phone" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">佣金比例(万分之X)<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                        <input  type="text" class="form-control" name = "feeScale" id="fee_scale" required/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">是否可以查看所有用户<i class="f-s-14 text-danger">*</i>&nbsp;: </label>
                        <div class="col-md-9 col-sm-8">
                            <input type="checkbox" class="status" autocomplete="off"
                                   data-input-name="allCustomer"
                                   data-size="small"
                                   data-on-color="primary"
                                   data-on-text="是"
                                   data-off-text="否"
                                   data-input-true="1"
                                   data-input-false="2"
                                   checked/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">是否可以查看客户电话<i class="f-s-14 text-danger">*</i>&nbsp;: </label>
                        <div class="col-md-9 col-sm-8">
                            <input type="checkbox" class="status" autocomplete="off"
                                   data-input-name="customerPhone"
                                   data-size="small"
                                   data-on-color="primary"
                                   data-on-text="是"
                                   data-off-text="否"
                                   data-input-true="1"
                                   data-input-false="2"
                                   checked/>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer"> <a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a> <a href="javascript:;" class="btn btn-primary" data-loading-text="Loading..." nc-ajax-submit-target="addForm2" nc-ajax-submit>确认提交</a> </div>
        </div>
    </div>
</div>
<!--结束添加销售模态窗口 -->

<!-- 开启编辑密码重置模态窗口 -->
<div class="modal fade" id="editModal" tabindex="-1" role="dialog">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title"> 重置密码 <a class="btn btn-info btn-xs m-l-10" role="button" data-toggle="collapse" href="#OperationTipsAdd" aria-expanded="true" title="操作提示"> <i class="fa fa-exclamation"></i> &nbsp;提示 </a> </h4>
            </div>
            <div class="modal-body">
                <ul class="text-info p-b-15 p-l-15 collapse in" role="tabpanel" id="OperationTipsAdd">
                    <li class="m-b-3">重置后密码统一修改为a123123</li>
                </ul>

                <form id="editForm" class="form-horizontal form-bordered p-0" autocomplete="off" action="${adminRoot}/user/pwdReset.json" method="post" data-parsley-validate="true">
                    <input type="hidden" id="user_id" name="id"/>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3" name = "id">客户ID&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="text" class="form-control" id="id" autocomplete="off" data-tip="tooltip" data-placement="auto" readonly="true"/>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer"> <a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a> <a href="javascript:;" class="btn btn-primary" data-loading-text="Loading..." nc-ajax-submit-target="editForm" nc-ajax-submit>确认提交</a> </div>
        </div>
    </div>
</div>
<!-- 结束编辑密码重置模态窗口 -->

<!-- 开启修改邀请人ID模态窗口 -->
<!--<div class="modal fade" id="editModal2" tabindex="-1" role="dialog">-->
    <!--<div class="modal-dialog">-->
        <!--<div class="modal-content">-->
            <!--<div class="modal-header">-->
                <!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>-->
                <!--<h4 class="modal-title"> 修改邀请人ID </h4>-->
            <!--</div>-->
            <!--<div class="modal-body">-->

                <!--<form id="editForm2" class="form-horizontal form-bordered p-0" autocomplete="off" action="${adminRoot}/user/changeInvest.json" method="post" data-parsley-validate="true">-->
                    <!--<input type="hidden" id="userId" name="id"/>-->
                    <!--<div class="form-group">-->
                        <!--<label class="control-label col-md-2 col-sm-3">新邀请人ID<i class="f-s-14 text-danger">*</i>&nbsp;:</label>-->
                        <!--<div class="col-md-9 col-sm-8">-->
                        <!--<input id="inviteId" type="text" class="form-control" name="inviteId"/>-->
                        <!--</div>-->
                    <!--</div>-->
                    <!--<div class="form-group">-->
                        <!--<label class="control-label col-md-2 col-sm-3" name = "resource">注册来源&nbsp;:</label>-->
                        <!--<div class="col-md-9 col-sm-8">-->
                        <!--<input type="text" class="form-control" id="resource" disabled/>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</form>-->
            <!--</div>-->
            <!--<div class="modal-footer"> <a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a> <a href="javascript:;" class="btn btn-primary" data-loading-text="Loading..." nc-ajax-submit-target="editForm2" nc-ajax-submit>确认提交</a> </div>-->
        <!--</div>-->
    <!--</div>-->
<!--</div>-->
<!-- 结束修改邀请人ID模态窗口 -->

</@list.html>
<!-- ================== 开始页面级JavaScrip调用 ================== -->
<script src="${pluginsRoot}bootstrap-wizard/js/bwizard.js"></script>
<!-- 表单checkbox项 -->
<script src="${pluginsRoot}bootstrap-switch/bootstrap-switch.min.js"></script>
<!-- 日历控件 -->
<script src="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/WdatePicker.js" defer="defer"></script>
<script src="${jsRoot}user/user.handle.js"></script>
<!-- ================== 结束页面级JavaScrip调用 ================== -->
</@c.html>
